import socket

s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
addr = ('', 2000)
s.bind(addr)
data, client_addr = s.recvfrom(100)
print(data.decode('utf8'), client_addr)
s.sendto('很牛'.encode('utf8'), client_addr)
s.close()
